namespace Excerise;

public class Clazz
{
    public string ClaName { get; set; }
    public int CId { get; set; }
    public Clazz(string claName, int cId)
    {
        ClaName = claName;
        CId = cId;
    }

    //重写ToString方法
    public override string ToString()
    {
        return $"班级名称: {ClaName},班级编号: {CId}";
    }
}